package com.greatwqs.wmall.user.provider.model.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 接收 User / Admin 登陆信息
 * @author wang-qingsong
 */
@Data
public class UserRegisterDto {

    @NotEmpty
    private String loginId; // 用户登陆账号（手机号/邮箱）

    @Size(min = 8, max = 20, message = "{validation.UserRegisterDto.password.Size}")
    private String password;
}
